package com.baiyimi.powerjob.sample;

import com.baiyimi.powerjob.worker.PowerJobWorker;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * powerjob-worker 配置
 * 代码配置示例，SpringBoot 项目支持使用 starter，只需要在 application.properties 中完成配置即可
 *
 * @author baiyimi
 * @since 2021/6/4
 */
@Configuration
public class PowerJobWorkerConfig {

    @Bean(name = "powerjobWorker")
    public PowerJobWorker initPowerJobWorker() throws Exception {

        return new PowerJobWorker();
    }

}
